package com.ynding.cloud.auth.api.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ynding
 */
@Data
@TableName("role")
@ApiModel(value = "Role", description = "角色")
public class Role implements Serializable {
    private static final long serialVersionUID = -468757998841307266L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id", notes = "ID", dataType = "long")
    private Long id;

    private String name;

    @ApiModelProperty(name = "nameZh", notes = "角色名称", dataType = "string")
    private String nameZh;

}
